package com.xiaoshuidi.cloud.module.contract.api.contract;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.contract.api.ContractApplyApi;
import com.xiaoshuidi.cloud.module.contract.service.contract.ContractApplyService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequiredArgsConstructor
public class ContractApplyApiImpl implements ContractApplyApi {

    private final ContractApplyService contractApplyService;

    /**
     * 统计未完成的租客申请数量
     * @return
     */
    @Override
    public CommonResult<Long> contractApplyNum() {
        return contractApplyService.contractApplyNum();
    }
}
